#ifndef  __MOTOR_H
#define  __MOTOR_H

#include "debug.h"
void motor_init(void);
void set_motor_duty(int duty);
void set_motor_pwm(uint16_t pwm);
void set_motor_en(FunctionalState NewState);

enum{
	wind_level_1 = 70,
	wind_level_2 = 40,
	wind_level_3 = 10,
	wind_stop = 100,
};

enum{
	pos_dir = 1,
	neg_dir = -1,
	stop_dir = 0,
};

#endif


